package com.production.CoursePlatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.Getter;

import java.time.LocalDateTime;

@Data
@TableName("course_notice")
public class Notice {
    @Getter
    @TableId(type = IdType.INPUT)
    @TableField("cn_id")
    private int cnID;
    @Getter
    @TableField("ct_id")
    private int ctID;
    @Getter
    @TableField("cn_title")
    private String cnTitle;
    @Getter
    @TableField("cn_content")
    private String cnContent;
    @Getter
    @TableField("cn_time")
    private LocalDateTime cnTime;
    @Getter
    @TableField("attachment")
    private int attachment;
    @Getter
    @TableField("unreadNumber")
    private int unreadNumber;

    public void setCnID(int cnID) {
        this.cnID = cnID;
    }

    public void setCtID(int ctID) {
        this.ctID = ctID;
    }

    public void setCnTitle(String cnTitle) {
        this.cnTitle = cnTitle;
    }

    public void setCnContent(String cnContent) {
        this.cnContent = cnContent;
    }

    public void setCnTime(LocalDateTime cnTime) {
        this.cnTime = cnTime;
    }

    public void setAttachment(int attachment) {
        this.attachment = attachment;
    }

    public void setUnreadNumber(int unreadNumber) {
        this.unreadNumber = unreadNumber;
    }

    public int getCnID() {
        return cnID;
    }

    public int getCtID() {
        return ctID;
    }

    public String getCnTitle() {
        return cnTitle;
    }

    public String getCnContent() {
        return cnContent;
    }

    public LocalDateTime getCnTime() {
        return cnTime;
    }

    public int getAttachment() {
        return attachment;
    }

    public int getUnreadNumber() {
        return unreadNumber;
    }
}
